package data.platform.merge.config;

import data.platform.common.merge.ArithmeticType;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "metric.merge")
@Slf4j
@Setter
@Getter
public class MetricMergeConfig {

    @Value("${metric.merge.buffer.maxSize}")
    private int bufferSize;

    @Value("${metric.merge.ifCrowdTime.threshold}")
    private Double ifCrowdTimePercentThreshold;

    private Map<String, ArithmeticType> arithmetics;

    private Map<String, List<String>> categories;
}
